
<style>
	.fui-list-media img{height:1.6rem;width:1.6rem;}
</style>
<div class="fui-page order-express-page">
    <div class="fui-header">
		<div class="fui-header-left">
			<a class="back" ng-click='goback()'></a>
		</div>
		<div class="title">{{pagedata.bundlelist.length>1?'包裹列表':'物流信息'}}</div>
		<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class='fui-content'>
		<div ng-if="pagedata.order.sendtype>0 && pagedata.bundlelist.length==1" class="fui-list-group">
			<div class="fui-list-group-title" style="font-size:0.6rem;">包裹内Goods</div>
			<a ng-repeat="item in pagedata.ordergoods" href="javascript:" ng-click="access_json('jy_weishop_en/goods.detail//id='+item.goodsid)">
				<div class="fui-list" style="padding:0.2rem 0.5rem;">
					<div class="fui-list-media back">
						<img ng-src="{{tomedia(item.goodsinfo.image) || '../core/resource/images/nopic.jpg'}}">
					</div>
					<div class="fui-list-inner" style="font-size:0.6rem;max-height:1.6rem;overflow: hidden;line-height: 0.8rem;">
						{{item.goodsinfo.title}}
					</div>
				</div>
			</a>
		</div>
		<div ng-if="pagedata.bundlelist.length>1" ng-repeat="b in pagedata.bundlelist" class="fui-list-group info-list">
				<div class="fui-list-group-title">
					<div class="fui-list" style="padding:0;border-bottom:1px solid #dcdcdc;">
						<div class="fui-list-inner">
							包裹{{$index+1}}
						</div>
						<a class="fui-list-media" href="javascript:" ng-click="access_json('jy_weishop_en/order.express//id='+b.id)"
						   style="float:right;font-size:0.6rem;color:#666;margin:0;">点击Look物流&nbsp;<span class="angle" style="font-size:1.2rem;"></span>
						</a>
					</div>
				</div>
				<a ng-repeat="bg in b.goods" href="javascript:" ng-click="access_json('jy_weishop_en/order.express//id='+b.id)">
					<div class="fui-list">
						<div class="fui-list-media back">
							<img ng-src="{{tomedia(bg.goodsinfo.image) || '../core/resource/images/nopic.jpg'}}">
							<div class="title">{{bg.total}}件Goods</div>
						</div>
						<div class="fui-list-inner" style="font-size:0.7rem;">
							{{bg.goodsinfo.title}}
						</div>
					</div>
				</a>
		</div>
		<div ng-if="pagedata.bundlelist.length==1" class="fui-list-group info-list">
			<div class="fui-list">
				<a class="fui-list-media back">
					<img ng-src="{{tomedia(pagedata.ordergoods[0].goodsinfo.image) || '../core/resource/images/nopic.jpg'}}">
					<div class="title">{{pagedata.ordergoods.length}}件Goods</div>
				</a>
				<div class="fui-list-inner">
					<div class="title state">物流状态
					<span ng-if="pagedata.expresslist.length>0">
						<span ng-if="pagedata.expresslist[0].step=='已签收'" class="text-danger">已签收</span></div>
						<span ng-if="pagedata.expresslist.length<=2 && pagedata.expresslist[0].step!='已签收'" class="text-primary">备货中</span>
						<span ng-if="pagedata.expresslist.length>2 && pagedata.expresslist[0].step!='已签收'" class="text-success">配送中</span>
					</span>
				</div>
			</div>
			<div class="fui-list" style="background: #fff;">
							<div class="fui-list-icon">
								<i class="icon icon-daishouhuo1" style="color: #ff5555;"></i>
							</div>
							<div class="fui-list-inner" style="font-size: 0.7rem;height: auto;line-height: 1.2rem;padding-left:0.3rem">
								<div class="title" ng-show="!pagedata.express" style='color:#ff5555'>快递公司:{{pagedata.bundlelist[0].express_name}}</div>
								<div class="title" ng-show="!pagedata.express" style='color:#999'>快递单号:{{pagedata.bundlelist[0].expresssn}}</div>
								<div class="title" ng-show="pagedata.express" style='color:#ff5555'>{{pagedata.express.step}}</div>
								<div class="title" ng-show="pagedata.express" style='color:#999'>{{pagedata.express.time}}</div>
							</div>
			</div>
		</div>
		<div ng-if="pagedata.expresslist.length<1 && pagedata.bundlelist.length<1" class='content-empty'>
			<i class='icon icon-deliver1'></i><br/><span class='text'>暂时没有物流信息</span>
		</div>
		<div class="fui-list-group express-list" style="margin-top: 0.5rem;">
				<div ng-repeat="ex in pagedata.expresslist" ng-class="{'fui-list':1, 'current':$index==0}">
					<div class="fui-list-inner">
					<div class="text step">{{ex.step}}</div>
						<div class="text time">{{ex.time}}</div>
					</div>
				</div>
		</div>
    </div>
</div>